﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace WCFMINERP.Contracts.DataContracts
{
    [DataContract]
    public class SHOP_Bill_Info
    {
        #region 私有字段

        private int _billId;
        private int _billOrderCode;
        private DateTime _createTime;

        #endregion

        /// <summary>
        /// 帐单总金额
        /// </summary>
        [DataMember]
        public double BillCount { get; set; }
        /// <summary>
        /// 商户余额
        /// </summary>
        [DataMember] 
        public double ShopBalance { get; set; }
        [DataMember]
        public int Status { get; set; }
        [DataMember]
        public string StatuName
        {
            get
            {
                if (Status == 0)
                {
                    return "未付款";
                }
                else if (Status == 1)
                {
                    return "已付款";
                }
                else if (Status == 2)
                {

                    return "转移走掉的账单";
                }
                else if (Status == 3)
                {

                    return "删除的帐单";
                }
                else
                {
                    return "不明状态";
                }
            }
            set { ;}
        }
        [DataMember]
        public List<Bill_Detail_Info> List_Detail { get; set; }//帐单里面的产品列表

        [DataMember]
        public string CheckType
        {
            get;
            set;
        }

        public ShopInfo Shop { get; set; }

        #region 公开属性
       
        [DataMember]
        public int BillId
        {
            get { return _billId; }
            set { _billId = value; }
        }
        [DataMember]
        public int BillOrderCode
        {
            get { return _billOrderCode; }
            set { _billOrderCode = value; }
        }
        [DataMember]
        public DateTime CreateTime
        {
            get { return _createTime; }
            set { _createTime = value; }
        }
        [DataMember]
        public int CreditLevel
        {
            get;
            set;
        }
      
        [DataMember]
        public bool IsAssignByCustom
        {
            get;
            set;
        }

        #endregion
    }
}
